<template>
	<view>
		<view class="u-p-30">
			<u-parse class="" :html="info" style="overflow:hidden;" :tag-style="{ img: 'display: block'}"></u-parse>
		</view>
	</view>
</template>

<script>
	import { BaseCenterApi } from '@/api/serves.js'
	export default {
		data() {
			return {
				title: '注册协议',
				type: '',
				info: '',
			};
		},
		onLoad(options) {
			this.getInfo()
		},
		methods: {
			getInfo() {
				BaseCenterApi.getAgreement().then(res=> {
					console.log('协议', res);
					if(res.code == 1) {
						this.info = res.data.register_credit
					}
				})
			}
		}
	}
</script>

<style lang="scss">

</style>
